//
//  Geocoder.h
//  SEIO2012
//
//  Created by Gonzalo Abella Dago on 28/05/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MapKit/MKPlacemark.h>
#import "GeocoderDelegate.h"


@interface Geocoder : NSObject {

	id<GeocoderDelegate> delegate;
	NSString *address;
	MKPlacemark *placemark;
	BOOL querying;
	
@private
	NSMutableData *receivedData;
	
	
}

@property (nonatomic, assign) id<GeocoderDelegate> delegate;
@property (nonatomic, copy) NSString *address;
@property (nonatomic, readonly) MKPlacemark *placemark;
@property (nonatomic, readonly) BOOL querying;


- (id)initWithAddress:(NSString *)address;
- (void)start;
- (void)cancel;

@end
